<template>
	<view class="customeBox">
		<view class="typeContent">
			<view class="typeList" v-for="(item,index) in contentList" :key="index" @click="datailsClick(item)">
				<view class="typeCtime">
					{{item.createtime}}
				</view>
				<view class="tyName">
					<view class="tyName1">
						姓名：
					</view>
					<view class="tyName2">
						{{item.name}}
					</view>
				</view>
				<view class="tyBudget">
					<view class="tyBudget1">
						预算：
					</view>
					<view class="tyBudget2">
						{{item.budget}}
					</view>
				</view>
				<view class="tyIntention">
					<view class="tyIntention1">
						意向车型：
					</view>
					<view class="tyIntention2">
						{{item.cat_type}}
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {filList} from '@/request/api.js'
	export default {
		data() {
			return {
				contentList:[], //假数据
				cate:'',
			};
		},
		onLoad(option) {
			this.cate = option.id
			this.onlodeList()
		},
		onShow() {
			
		},
		methods:{
			onlodeList(){
				filList({
					type:uni.getStorageSync("login").type,
					user_id:uni.getStorageSync("login").id,
					cate:this.cate,
				}).then(res => {
					console.log(res);
					this.contentList = res.data.data
					uni.showToast({
						title: res.msg,
						icon: "none"
					})
				})
			},
			datailsClick(item){
				uni.navigateTo({
					// url:'/pagesA/DLR/customerDetails'
					url:'/pagesA/DLR/examineDetails?id=' + item.id
				})
			}
		}
	}
</script>

<style lang="scss">
	page{
		background-color: #FFFFFF;
	}
.customeBox{
	width: 100%;
	box-sizing: border-box;
	padding-bottom: 40rpx;
	overflow: hidden;
	position: relative;
	.typeContent{
		width: 100%;
		overflow: hidden;
		.typeList{
			width: 670rpx;
			// height: 330rpx;
			box-sizing: border-box;
			margin: 40rpx auto 0;
			border-bottom: 1px solid #EEEFF0;
			padding-bottom: 20rpx;
			.typeCtime{
				display: flex;
				justify-content: space-between;
				font-size: 26rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #313233;
				margin-left: 25rpx;
				margin-top: 24rpx;
				border-bottom: 1px solid #EEEFF0;
				padding-bottom: 20rpx;
				.tyStatus{
					width: 90rpx;
					height: 36rpx;
					background: #1855F6;
					border-radius: 18rpx;
					font-size: 22rpx;
					font-family: PingFang SC;
					font-weight: 500;
					color: #F5F5F5;
					line-height: 36rpx;
					text-align: center;
					margin-top: 25rpx;
					margin-right: 24rpx;
				}
				.tyStatusA{
					width: 90rpx;
					height: 36rpx;
					background: #F69518;
					border-radius: 18rpx;
					font-size: 22rpx;
					font-family: PingFang SC;
					font-weight: 500;
					color: #F5F5F5;
					line-height: 36rpx;
					text-align: center;
					margin-top: 25rpx;
					margin-right: 24rpx;
				}
				.tyStatusB{
					width: 90rpx;
					height: 36rpx;
					background:#F61861;
					border-radius: 18rpx;
					font-size: 22rpx;
					font-family: PingFang SC;
					font-weight: 500;
					color: #F5F5F5;
					line-height: 36rpx;
					text-align: center;
					margin-top: 25rpx;
					margin-right: 24rpx;
				}
			}
			.tyName{
				margin-left: 25rpx;
				display: flex;
				margin-top: 54rpx;
				.tyName1{
					color: #313233 ;
					font-size: 36rpx;
					margin-right: 161rpx;
				}
				.tyName2{
					color: #313233 ;
					font-size: 36rpx;
				}
			}
			.tyBudget{
				margin-left: 25rpx;
				display: flex;
				margin-top: 54rpx;
				.tyBudget1{
					color: #313233 ;
					font-size: 36rpx;
					margin-right: 161rpx;
				}
				.tyBudget2{
					color: #313233 ;
					font-size: 36rpx;
				}
			}
			.tyIntention{
				margin-left: 25rpx;
				display: flex;
				margin-top: 54rpx;
				.tyIntention1{
					color: #313233 ;
					font-size: 36rpx;
					margin-right: 89rpx;
				}
				.tyIntention2{
					color: #313233 ;
					font-size: 36rpx;
				}
			}
		}
	}
}
</style>
